<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    async function sleep(delay = 1000) {
      return new Promise(resolve=>{
        setInterval(() => {
          resolve()
        }, delay);
      })
    }
    let arr = ['aaa','bbb','ccc']
    async function show() {
      for (const user of arr) {
        await sleep()
        console.log(user);
        
      }
    }
    show()
     
  </script>
</body>
</html>